Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

Fix param.Action (#9). #32

Merged
merged 5 commits into from
Dec 19, 2017
Merged

Fix param.Action (#9). #32

merged 5 commits into from
Dec 19, 2017

Conversation

ceball
Copy link
Member

@ceball ceball commented Dec 14, 2017

No description provided.

@@ -174,6 +174,9 @@ def __call__(self, parameterized, doc=None, plots=[], **params):
def on_msg(self, msg):
p_name = msg['p_name']
p_obj = self.parameterized.params(p_name)
if isinstance(p_obj, param.Action):
getattr(self.parameterized, p_name)(self.parameterized)
return
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other widgets won't be refreshed - is that a problem? What if the callback alters another parameter value? (I decided not to get into this now, deferring it to 'dependencies between parameters and code'...)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deferring it to 'dependencies between parameters and code'

+1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds fine.

@ceball ceball requested a review from philippjfr December 14, 2017 23:56
# TODO: isn't this cutting out info needed to understand what's gone wrong?
# Since it's only going to the js console, maybe we could just show everything
# (error = traceback.format_exc() or something like that)? Separately we do need a mechanism
# to report reasonable messages to users, though.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All true, if we can find a way to make tracebacks readable on the JS console I'd be very happy to change this (and port the change back to holoviews).

"cell_type": "markdown",
"metadata": {},
"source": [
"Example.timestamps records the times you pressed the \"record timestamp\" button."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good example, thanks.

@jbednar
Copy link
Member

jbednar commented Dec 15, 2017

Happy to merge, but it would be nice if conda was working so the tests could complete.

@ceball
Copy link
Member Author

ceball commented Dec 17, 2017

Seems like the same problem reported in conda/conda#6468. However, the version of conda has not changed since the last successful build (4.3.30), so I'd guess something has changed at travis (e.g. related to docker, or the linux image, etc). I have not investigated.

@ceball
Copy link
Member Author

ceball commented Dec 17, 2017

The problem appears to be intermittent :(

E.g. two jobs in the same build (same codebase, same image); one gets past the conda download/install stage, the other one fails: https://travis-ci.org/ioam/parambokeh/builds/317743629?utm_source=github_status&utm_medium=notification

…ilures.

See conda/conda#6468.

Also note that the existing duplication of commands and amount of bash inside a 'config' file is being tackled separately...
I was a victim of all the duplication even while writing about it...
@ceball ceball merged commit 161109c into master Dec 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants